home *** CD-ROM | disk | FTP | other *** search
- // Graphics editor - simple example of objects organization.
- // all flags are kept in global_i[1] ...
-
- #ifndef __DRAW_H_
- #define __DRAW_H_
-
- //#include "tools.h"
- #include "window.h"
- #include "gbuf.h"
- //#include "kh_draw.h"
-
- class KH_Draw;
-
- class Draw : public Window
- {
- public:
- int saved; // Is the file saved or ask "SAVE: Y/N ?"
- KH_Draw* kh_draw;
-
- Draw(rect coordinates);
- virtual ~Draw();
- virtual void exe(int act);
- virtual void show();
- virtual void repose(rect rec);
- void draw();
- void load(); // reloads pcx - file from global[]
- void save();
- void new_file(rect r, int hide = 1);
- int do_scroll(int key, GrafBuffer* buf); // scroll with keyboard
- int cut_copy(char* copyName = "copy.pcy");
- int paste(char* copyName = "copy.pcy");
- int filter_func();
- int dither_func();
- loc verify_rect(rect r);
- };
-
- #endif __DRAW_H_